package com.dendi.controller;

import com.dendi.service.UserService;
import com.dendi.util.Sha1Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.UUID;

@Controller
public class URLController {



	@RequestMapping(value = "/aa")
	public String index( ModelMap model) {
		//System.out.println(userService.getUserById("52"));
		String nonce_str = UUID.randomUUID().toString().replaceAll("-", "");
		String timestamp = Sha1Util.getTimeStamp();
		model.addAttribute("timestamp",timestamp);
		model.addAttribute("nonce_str",nonce_str);
			model.addAttribute("bb","CCCCCCCCCCCCCCCC");
		return "map";
	}

}
